{extend name="$BASE_POPUP_FORM" /}
{block name="body"}
<style>
    .edui-editor, .edui-editor-iframeholder {
        width: 790px !important;
    }
</style>
<div class="box-content">   
    <input type="hidden" id="id" name="id" value="{$id}"/>
    <div class="control-row col-4">
        <div class="control-group">
            <label class="control-label">分类名称</label>
            <div class="controls">
                <select name="class_id" id="class_id" class="form-control required">
                    {volist name="class_list" id="vo"}
                    <option value="{$vo.id}">{$vo.class_name}</option>
                    {/volist}
                </select>
            </div>
        </div>
    </div>
    <div class="control-row col-2">
        <div class="control-group">
            <label class="control-label">标题</label>
            <div class="controls">
                <input style="width:150px" type="text" id="title" name="title" placeholder="在此输入标题" class="form-control required" />
            </div>
        </div> 
    </div>
    <div class="control-group">
        <label class="control-label">排序</label>
        <div class="controls">
            <input style="width:150px" type="text" id="order_index" name="order_index" placeholder="越小越靠前" class="form-control required" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">资讯内容</label>
        <div class="controls">
            <textarea id="content" name="content"></textarea>
            {:hook('editor', array('height'=>'','id'=>"$id",'name'=>'content'))}
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    function onLoadDataSuccess(data) {
        if (typeof (onLoadSuccess) !== "undefined")
            onLoadSuccess();
    }  
</script>
{/block}


